package abstractfactory.factory;

import abstractfactory.factory.Factory;
import abstractfactory.factory.impl.ColorFactory;
import abstractfactory.factory.impl.SuitFactory;

public class FactoryProducer {
    public static Factory getFactory(String factory){
        if(factory.equalsIgnoreCase("suit")){
            return new SuitFactory();
        } else if(factory.equalsIgnoreCase("color")){
            return new ColorFactory();
        }
        return null;
    }

}
